-- GENERATED SPELL FOR [Ravaged Ghoul] --


function spell0_32502(pUnit, Event) --@Festering Bite,n/a--
pUnit:FullCastSpellOnTarget(60873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32502', 15251, 1)
end

function spell1_32502(pUnit, Event) --@Ravenous Claw,Heal--
pUnit:FullCastSpellOnTarget(60872,pUnit)
pUnit:RegisterEvent('Sorts_32502', 582, 1)
end

function Sorts_32502(pUnit, Event)
local choix_sorts_32502 = math.random(0, 1)
if choix_sorts_32502 == 0 then
pUnit:RegisterEvent('spell0_32502', 1, 1)
end
if choix_sorts_32502 == 1 then
pUnit:RegisterEvent('spell1_32502', 1, 1)
end
end

function mob32502_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32502', math.random(1500, 3000), 1)
end

function mob32502_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32502_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32502_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32502, 1, 'mob32502_Action')
RegisterUnitEvent(32502, 2, 'mob32502_Leave')
RegisterUnitEvent(32502, 3, 'mob32502_Kill')
RegisterUnitEvent(32502, 4, 'mob32502_Die')
